﻿using Swimj.DomainLib.Entities;

namespace BaseData.DomainLib.AggregatesModel.WorkstationAggregate;

public class Workstation : AuditableAggregateRoot<int>
{
    public Workstation(string? code, string? name, string? description)
    {
        Code = code;
        Name = name;
        Description = description;
    }

    public string? Code { get; set; }

    public string? Name { get; set; }

    public string? Description { get; set; }

    public void Update(string? name, string? description)
    {
        Name = name;
        Description = description;
    }
}